package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author durant
 * @create 2021-12-10 8:49
 * @Description:  2级分类vo
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Catelog2Vo {
    private String catalog1Id;// 一级父分类的id
    private List<catalog3Vo> catalog3List;// 三级子分类的集合
    private String id;// 当前节点的id
    private String name;
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class catalog3Vo{
        //"catalog2Id":"62",
        //                    "id":"624",
        //                    "name":"高跟鞋"
        private String catalog2Id;// 二级父分类的id
        private String id;// 当前节点的id
        private String name;
    }
}
